package edu.zut.cs.software.perfect.admin.web.spring.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import edu.zut.cs.software.perfect.admin.domain.User;
import edu.zut.cs.software.perfect.admin.service.UserManager;
import edu.zut.cs.software.perfect.base.web.spring.controller.GenericController;

/**
 * @ClassName UserController
 * @Description TODO
 * @Author liangying
 * @Date 2020年5月30日 上午12:17:44
 * @Version 1.0
 */
@RestController
@RequestMapping(value = "/user", produces = { MediaType.APPLICATION_JSON_VALUE })

public class UserController extends GenericController<User, Long, UserManager> {

	UserManager userManager;
	
	@RequestMapping("/index")
	public String index() {
		return "user/index";
	}

	@Autowired
	public void setUserManager(UserManager userManager) {
		this.userManager = userManager;
		this.manager = this.userManager;
	}
	
}
